<?php
//定义面包屑变量breadcrumbs
$this->breadcrumbs =array(
    '用户中心'=>array('user/register'),
    '用户注册'=>array('user/register'),
);
?>

            <!--放入view具体内容-->

            <div class="block box">

                <div class="usBox">
                    <div class="usBox_2 clearfix">
                        <div class="logtitle3"></div>
                        <?php $form = $this->beginWidget('CActiveForm',
                            array(
                            'enableClientValidation'=>true,
                            'clientOptions'=>array(
                                'validateOnSubmit'=>true,
                            ),
                            )
                        ); ?>
                        <table cellpadding="5" cellspacing="3" style="text-align:left; width:100%; border:0;">
                            <tbody>
                            <tr>
                                <td style="width:13%; text-align: right;">
                                    <?php echo $form -> labelEx($user_model,'username') ?>
                                </td>
                                <td style="width:87%;">
                                    <?php echo $form -> textField($user_model,'username',array('class'=>'inputBg','id'=>'User_username')) ?>

                                <?php echo $form->error($user_model,'username')  ?>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <?php echo $form -> labelEx($user_model,'password') ?>
                                </td>
                                <td>
                                    <?php echo $form -> passwordField($user_model,'password',array('class'=>'inputBg','id'=>'User_password')) ?>
                                    <?php echo $form->error($user_model,'password')  ?>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <?php echo $form -> label($user_model,'password2') ?>
                                </td>
                                <td>
                                    <?php echo $form -> passwordField($user_model,'password2',array('class'=>'inputBg','id'=>'User_password2')) ?>
                                    <?php echo $form->error($user_model,'password2')  ?>
                                </td>

                            </tr>
                            <tr>
                                <td align="right">
                                    <?php echo $form -> label($user_model,'user_email') ?>
                                </td>
                                <td>
                                    <?php echo $form -> textField($user_model,'user_email',array('class'=>'inputBg','id'=>'User_user_email')) ?>
                                    <?php echo $form->error($user_model,'user_email')  ?>
                                </td>
                            </tr>
                            <tr>

                                <td align="right"><?php echo $form -> label($user_model,'user_qq') ?></td>
                                <td>
                                    <?php echo $form -> textField($user_model,'user_qq',array('class'=>'inputBg','id'=>'User_user_qq')) ?>
                                    <?php echo $form->error($user_model,'user_qq')  ?>
                                </td>
                            </tr>
                            <tr>
                                <td align="right"><?php echo $form -> label($user_model,'user_tel') ?></td>
                                <td>
                                    <?php echo $form -> textField($user_model,'user_tel',array('class'=>'inputBg','id'=>'User_user_tel','maxlength'=>11)) ?>
                                    <?php echo $form->error($user_model,'user_tel')  ?>
                                </td>
                            </tr>
                            <tr>
                                        <!--radioButtonList($model,$attribute,$data,$htmlOptions=array())-->
                                <td align="right"><?php echo $form -> label($user_model,'user_sex') ?></td>
                                <td>
                                    <?php echo $form->radioButtonList($user_model,'user_sex',$sex,array('separator'=>'&nbsp;')); ?>
                                </td>
                            </tr>
                            <tr>
                                        <!--dropDownList($model,$attribute,$data,$htmlOptions=array())-->
                                <td align="right"><?php echo $form -> label($user_model,'user_xueli') ?></td>
                                <td>
                                    <?php echo $form->dropDownList($user_model,'user_xueli',$xueli); ?>
                                    <?php echo $form->error($user_model,'user_xueli')  ?></td>
                            </tr>
                            <tr>
                                        <!--checkBoxList($model,$attribute,$data,$htmlOptions=array())-->
                                <td align="right"><?php echo $form -> label($user_model,'user_hobby') ?></td>

                                <td>
                                    <?php echo $form->checkBoxList($user_model,'user_hobby',$hobby,array('separator'=>'&nbsp;')); ?>
                                    <?php echo $form->error($user_model,'user_hobby')  ?>
                                </td>
                            </tr>
                            <tr>

                                        <!--textArea($model,$attribute,$htmlOptions=array())-->
                                <td align="right"><?php echo $form -> label($user_model,'user_introduce',array('cols'=>50,'cows'=>5)) ?></td>
                                <td>
                                    <?php echo $form->textArea($user_model,'user_introduce'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>

                                <td align="left">
                                    <input name="Submit" value="" class="us_Submit_reg" type="submit" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">&nbsp;</td>
                            </tr>
                            </tbody>
                        </table>

                        <?php $form = $this->endWidget(); ?>
                    </div>
                </div>
            </div>
            <!--放入view具体内容-->

        </div>


